package cn.qingyun.gis.modules.scenes.request;

import cn.qingyun.gis.common.Pager;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 未随访查询请求对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "poi列表查询请求对象", description = "poi列表查询请求对象")
public class PoiListRequest extends Pager {

    @NotEmpty(message = "场景类型不能为空")
    @ApiModelProperty(value = "场景类型")
    private String type;

//    @NotNull(message = "网格编码不能为空")
    @ApiModelProperty(value = "网格编码")
    private String gridId;

    @ApiModelProperty(value = "勘误工号")
    private String kwPhone;

    @ApiModelProperty(value = "渠道编码")
    private String channelCode;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "实时经度")
    private BigDecimal lon;

    @ApiModelProperty(value = "实时经度")
    private BigDecimal lat;

    @Min(value = 0, message = "随访状态只能为0或1")
    @Max(value = 1, message = "随访状态只能为0或1")
    @ApiModelProperty(value = "0(未勘误)，1(已勘误)")
    private Integer kwMixState;
    /**
     * 角色类型
     */
    @NotNull(message = "角色类型不能为空")
    @ApiModelProperty(value = "角色类型")
    private Integer roleType;
    /**
     * 编码
     */
    @NotEmpty(message = "角色传递参数不能为空")
    @ApiModelProperty(value = "角色传递参数不能为空")
    private String codeStr;
    //自有、直销工号
    private String telNum;
    /**
     * 距离
     */
    @ApiModelProperty(value = "距离限制")
    private Double distance;

    @ApiModelProperty(value = "是否是建筑")
    private Integer isBuild=0;

    @ApiModelProperty(value = "归属建筑poiId")
    private String belongBuildId;

    @ApiModelProperty(value = "是否是金牌建筑")
    private Integer isGoldBuild;
}
